# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Oliver Smith <ollieparanoid@postmarketos.org>
pkgname=qtvirtualkeyboard-plasma
pkgver=0_git20200921
pkgrel=0
_commit="0ebc1639efc6172866aa8706b3c8f1a83bf74b9e"
pkgdesc="Plasma qtvirtualkeyboard style"
url="https://invent.kde.org/bshah/qtvirtualkeyboard-plasma"
# armhf blocked by extra-cmake-modules
arch="noarch !armhf"
license="LicenseRef-KDE-Accepted-GPL"
depends="qt5-qtquickcontrols2 qt5-qtvirtualkeyboard"
source="https://invent.kde.org/bshah/qtvirtualkeyboard-plasma/-/archive/$_commit/qtvirtualkeyboard-plasma-$_commit.tar.gz"
options="!check" # No tests
builddir="$srcdir/$pkgname-$_commit/qtvirtualkeyboardplugin"
replaces="plasma-phone-components-vkbd-style"

package() {
	# Don't use the CMakeLists.txt, it installs to the wrong dir (ondev#33)
	for i in style.qml images/*.svg; do
		install -v -Dm644 "$i" \
			"$pkgdir/usr/lib/qt5/qml/QtQuick/VirtualKeyboard/Styles/Plasma/$i"
	done
}

sha512sums="49e6a0043a46c6707e4898e560a67b121a094e4ed92f7e4b920af56b68631b5cc74c9f8f1a2ed7312199d67695a3809bd273751d98f9c7df6e64a1efebbf5698  qtvirtualkeyboard-plasma-0ebc1639efc6172866aa8706b3c8f1a83bf74b9e.tar.gz"
